package com.fjwt.gz.interfaces;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjwt.gz.db.dto.ScoreRecordDTO;

import java.util.List;

public interface BaseScoreRecodService {

    int addScore(List<ScoreRecordDTO> list);

    // 用户主动消耗积分时查询积分过期list
    List<ScoreRecordDTO> selectOffRecordList(Long fansId, String overDate, Integer scoreNeed);

    // 积分明细过期更新
    void updateBatchOffScore(List<ScoreRecordDTO> offScoreRecords, Integer state,Long fansId);

    // 定时任务过期积分查询
    IPage<ScoreRecordDTO> selectOffRecordListOfTask(Page page, String overDate, Integer state);
}
